<%@ page language="java" pageEncoding="UTF-8"%>
<html>
	<head>
		<title>chat</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<script type='text/javascript' src='${pageContext.request.contextPath }/dwr/engine.js'></script>
		<script type='text/javascript' src='${pageContext.request.contextPath }/dwr/interface/ChatManager.js'></script>
		<script type='text/javascript' src='${pageContext.request.contextPath }/dwr/util.js'></script>
		<script type="text/javascript" src="./chat.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath }/script/jquery/jquery-1.7.2.min.js"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				dwr.engine.setErrorHandler(function(){});
			});			
		</script>
	</head>
	<body>
		<div style="float: right;position:absolute;top: 50px;border: 1px solid red ;right:2px;background: white;z-index: 1000;">
			<input type="hidden" name="userid" />
			<br/>
			昵称:
			<input type="text" name="username" id="username" value="${admin.username}" readonly="readonly"/>
			<br />
			<br />			
			在线用户列表:
			<ul id="users">
			</ul>
			<hr/>
			
			<div id="messagediv">
				<span id="oldmsg"></span>		
			</div>
			<div id="showMessage" style="display: none">
				<span id="sender"></span>对你说:
				<span id="msg"></span>
			</div>
			我要对
			<select name="receiver" id="receiver" >
			</select>
			说:
			<input type="text" name="message" id="message" />
			<input type="button" value="发送" id="send" name="send" onclick="send();" />
		</div>
		<script type="text/javascript">
			init('${admin.id}','${admin.username}');
		</script>
	</body>
</html>
